package com.demo.mvc.ioc;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.ApplicationContext;
import org.springframework.stereotype.Component;


@Slf4j
@Component
public class People007 {

  @Autowired
  @Qualifier("trigger")
  Animal animal;

//  @Autowired
//  public void setAnimal(  @Qualifier("dogImpl") Animal aAnimal){
//    animal = aAnimal;
//  }

  public void myAnimalSay(){
    animal.say();
  }

}
